<template>
  <el-table
      class="table"
      :data="tableData"
      stripe
      style="width: 100%">
    <el-table-column
        prop="address"
        label="选择"
        width="50">
      <template slot-scope="scope">
        <el-radio v-model="radioSelect"
                  :label="scope.row.id"
                  @change.native="handleRadioChange(scope.row)"
        >&nbsp;
        </el-radio>
      </template>
    </el-table-column>
    <el-table-column
        prop="name"
        label="公司名"
        width="170">
    </el-table-column>
    <el-table-column
        prop="time"
        label="注册时间"
        width="150">
    </el-table-column>
    <el-table-column
        prop="time"
        label="联系人"
        width="120">
    </el-table-column>
    <el-table-column
        prop="time"
        label="联系电话"
        width="160">
    </el-table-column>
    <el-table-column
        prop="address"
        label="未完成订单数"
        width="160">
    </el-table-column>
    <el-table-column
        prop="address"
        label="在途运输订单数"
        width="160">
    </el-table-column>
    <el-table-column
        prop="address"
        label="已完成订单数"
        width="160">
    </el-table-column>
    <el-table-column
        prop="address"
        label="累计结算金额(￥)"
        width="160">
    </el-table-column>
    <el-table-column
        prop="address"
        label="待结算金额(￥)"
        width="150">
    </el-table-column>
    <el-table-column
        prop="address"
        label="累计开票金额(￥)"
        width="150">
    </el-table-column>

  </el-table>
</template>

<script>
export default {
  name: "ClientIndex",
  props:{
    tableData: [],
    identity: String,
  },
  data(){
    return{
      radioSelect: '1',
    }
  },
  created() {
    this.init()
  },
  methods:{
    async init(){

    },

    // 选择单选框
    handleRadioChange(row) {
      console.log(row)
    },
  }
}
</script>

<style scoped>

</style>